package cn.njupt.doublecirclelist;

public interface List<E>{

    public  static final int ELEMENT_NOT_FOUND =-1;


    public abstract int size();

    public abstract void clear();

    public abstract  boolean isEmpty();

    public abstract void add(E element);

    public abstract  void  add(int index, E element);

    public abstract  void remove(int index);

    public abstract E set(int index, E element);

    public abstract E get(int index);

    public abstract boolean contains(E element);

    public abstract  int indexOf(E element);



}
